<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>取派标准页面</title>
		<meta name="renderer" content="webkit">
  		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<!-- 项目基准路径 -->
		<base href="/bestinc/"/>
		<!-- 引入layui的css -->
		<link rel="stylesheet" href="static/layui/css/layui.css"  media="all">
		<!-- 引入自定义工具css -->
		<!-- <link rel="stylesheet" href="static/css/base/staff/staff.css"  media="all"> -->
		<link rel="stylesheet" href="static/css/util.css"  media="all">
		<!-- 引入jqeury -->
		<!-- <script src="js/util/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script> -->
		
		<!-- 引入layui的js -->
		<script src="static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		
		<!-- 引入资源js -->
		<script src="static/js/base/staff/standard.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
	<div id="content">
		<!-- 头部搜索框 -->
		<div id="search-header">
		  <form class="layui-form">
		      <div class="layui-form-item">
		        <div class="layui-inline">
		          <label class="layui-form-label">取派标准</label>
		          <div class="layui-input-inline">
		            <input id="standardNameth" type="text" name="standardName" placeholder="请输入" autocomplete="off" class="layui-input">
		          </div>
		        </div>
		        <div class="layui-inline">
		          <label class="layui-form-label">最小重量</label>
		          <div class="layui-input-inline">
		            <input id="minWeightth" type="text" name="minWeight" placeholder="请输入" autocomplete="off" class="layui-input">
		          </div>
		        </div>
		        <div class="layui-inline">
		          <label class="layui-form-label">最大重量</label>
		          <div class="layui-input-inline">
		            <input id="maxWeightth" type="text" name="maxWeight" placeholder="请输入" autocomplete="off" class="layui-input">
		          </div>
		        </div>
		          <div class="layui-inline">
		          <label class="layui-form-label">是否可用</label>
		          <div class="layui-input-inline">
		            <select name="userable" id="userableth">
		              <option value=""></option>
		              <option value="N">否</option>
		              <option value="Y">是</option>
		            </select>
		          </div>
		          </div> 
		        <div class="layui-inline">
		          <label class="layui-form-label"></label>
		           <div class="layui-input-inline">
		            <button class="layui-btn" lay-submit="" lay-filter="resourceSearchBtn">
		            	<i class="layui-icon layui-icon-search"></i>
		            	查询
		            </button>
		           <button class="layui-btn"  type="reset">
		            	<i class="layui-icon layui-icon-refresh"></i>
		            	重置
		            </button>
		          </div>
		        </div>
		      </div>
	      </form>
	    </div>
		<!-- 数据表格 -->
			<div id="dataTable">
		<table class="layui-hide" id="resourceTable" lay-filter="resourceTableEvent">
		</table>
		</div>
		<!-- 添加模态框 -->
		<div id="addResourceModal" class="definedModal">
			<!-- 这里手动加表单样式 -->
			<form id="addResourceForm" lay-filter="addResourceForm" class="layui-form" action="">
			  <div class="layui-form-item">
			    <label class="layui-form-label">取派标准</label>
			    <div class="layui-input-block">
			      <input type="text" name=standardName lay-verify="required" placeholder="请输入取派标准" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">最小重量</label>
			    <div class="layui-input-block">
			      <input type="text" name="minWeight" lay-verify="required"  placeholder="(单位Kg)" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">最大重量</label>
			    <div class="layui-input-block">
			      <input type="text" name="maxWeight" lay-verify="required"  placeholder="(单位Kg)" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item layui-form-text">
			    <label class="layui-form-label">描述</label>
			    <div class="layui-input-block">
			      <textarea name="description" placeholder="请输入内容" class="layui-textarea" lay-verify="required"></textarea>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <div class="layui-input-block">
			      <button type="submit" class="layui-btn" lay-submit="" lay-filter="addResourceBtn">立即提交</button>
			      <button type="button" class="layui-btn modalClose">关闭</button>
			    </div>
			  </div>
			</form>
		</div>
		
		<!-- 修改模态框 -->
		<div id="updateResourceModal" class="definedModal">
			<!-- 这里手动加表单样式 -->
			<form id="updateResourceForm" lay-filter="updateResourceForm" class="layui-form" action="">
			<input type="hidden" name="standardId" >
			  <div class="layui-form-item">
			    <label class="layui-form-label">取派标准</label>
			    <div class="layui-input-block">
			      <input type="text" name="standardName" lay-verify="required" placeholder="请输入取派标准" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">最小重量</label>
			    <div class="layui-input-block">
			      <input type="text" name="minWeight" lay-verify="required"  placeholder="(单位Kg)" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">最大重量</label>
			    <div class="layui-input-block">
			      <input type="text" name="maxWeight" lay-verify="required"  placeholder="(单位Kg)" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item layui-form-text">
			    <label class="layui-form-label">描述</label>
			    <div class="layui-input-block">
			      <textarea name="description" placeholder="请输入内容" class="layui-textarea" lay-verify="required"></textarea>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <div class="layui-input-block">
			      <button type="submit" class="layui-btn" lay-submit="" lay-filter="updateResourceBtn">立即提交</button>
			      <button type="button" class="layui-btn modalClose">关闭</button>
			    </div>
			  </div>
			</form>
		</div>
		
	    <!-- 头部工具栏 -->
		<script type="text/html" id="resourceToolbar">
  			<div class="layui-btn-group">
 				<button lay-event="addResource" class="layui-btn layui-btn-primary layui-btn-sm"title="添加"><i class="layui-icon">&#xe654;</i>添加</button>
				<button lay-event="updateResource" class="layui-btn layui-btn-primary layui-btn-sm"title="修改"><i class="layui-icon">&#xe642</i>修改</button>
				<button lay-event="frozenRecord" class="layui-btn layui-btn-primary layui-btn-sm"title="禁用"><i class="layui-icon">&#xe702;</i>禁用</button>
				<button lay-event="restoreRecord" class="layui-btn layui-btn-primary layui-btn-sm"title="恢复"><i class="layui-icon">&#xe666;</i>恢复</button>
  			</div>
		</script>
		<!-- 状态 -->
		<script type="text/html" id="checkboxTpl">
    		<input type="checkbox" lay-filter="useable" value="{{d.standardId}}" lay-skin="switch" lay-text="可用|禁用" {{d.userable=='Y'?'checked':''}}/>

		</script>
		
		<!-- 工具栏列 -->
		<script type="text/html" id="resourceBar">
  			<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
		</script>
		
		</div>
	</body>
</html>
